package com.tentact.vo;

import java.util.Date;
import java.util.List;

import javax.persistence.Id;

import org.springframework.format.annotation.DateTimeFormat;

import tk.mybatis.mapper.annotation.KeySql;

public class Meeting {
	@Id
	@KeySql(useGeneratedKeys = true)
    private Integer meetingid;

    private String meetingname;

    private Integer roomid;

    private Integer reservationistid;

    private Integer numofparticipants;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date begintime;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date endtime;
    
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date reservationtime;

    private Date canceledtime;

    private Integer meetingstatus;

    private String description;
    
    private Employee employee;
    
    private Meetingroom meetingroom;
    
    private List<Employee> employees;
    
    

    public Employee getEmployee() {
		return employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public Meetingroom getMeetingroom() {
		return meetingroom;
	}

	public void setMeetingroom(Meetingroom meetingroom) {
		this.meetingroom = meetingroom;
	}

	public List<Employee> getEmployees() {
		return employees;
	}

	public void setEmployees(List<Employee> employees) {
		this.employees = employees;
	}

	public Integer getMeetingid() {
        return meetingid;
    }

    public void setMeetingid(Integer meetingid) {
        this.meetingid = meetingid;
    }

    public String getMeetingname() {
        return meetingname;
    }

    public void setMeetingname(String meetingname) {
        this.meetingname = meetingname == null ? null : meetingname.trim();
    }

    public Integer getRoomid() {
        return roomid;
    }

    public void setRoomid(Integer roomid) {
        this.roomid = roomid;
    }

    public Integer getReservationistid() {
        return reservationistid;
    }

    public void setReservationistid(Integer reservationistid) {
        this.reservationistid = reservationistid;
    }

    public Integer getNumofparticipants() {
        return numofparticipants;
    }

    public void setNumofparticipants(Integer numofparticipants) {
        this.numofparticipants = numofparticipants;
    }

    public Date getBegintime() {
        return begintime;
    }

    public void setBegintime(Date begintime) {
        this.begintime = begintime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Date getReservationtime() {
        return reservationtime;
    }

    public void setReservationtime(Date reservationtime) {
        this.reservationtime = reservationtime;
    }

    public Date getCanceledtime() {
        return canceledtime;
    }

    public void setCanceledtime(Date canceledtime) {
        this.canceledtime = canceledtime;
    }

    public Integer getMeetingstatus() {
        return meetingstatus;
    }

    public void setMeetingstatus(Integer meetingstatus) {
        this.meetingstatus = meetingstatus;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }
}